// 全局js权限处理
$.permissions = [];
$.addPer = function (per) {
    $.permissions.push(per);
};
$.hasPer = function (per) {
    return $.inArray(per, $.permissions || parent.$.permissions) > -1;
};